package com.leather.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.leather.admin.entity.Permission;
import com.leather.admin.entity.RolePermission;

import java.util.List;

public interface PermissionRoleService extends IService<RolePermission> {


    /**
     * 新增角色权限
     * @param roleId
     * @param permissionId
     * @return
     */
     int  addRolePermisson(int roleId,int permissionId);

    /**
     * 根据管理员名字获取他的所有权限
     * @param adminName
     * @return
     */
     List<Permission> getRolePermission(String adminName);

}
